<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use yii\helpers\Url;
$session = Yii::$app->session;
$session->open();
?>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Foo Tables | Nifty - Admin Template</title>


    <!--STYLESHEET-->
    <!--=================================================-->

    <!--Open Sans Font [ OPTIONAL ]-->
    <link href='/thirdparty/googlefonts/OpenSans.css' rel='stylesheet' type='text/css'>


    <!--Bootstrap Stylesheet [ REQUIRED ]-->
    <link href="/thirdparty/nifty/css/bootstrap.min.css" rel="stylesheet">


    <!--Nifty Stylesheet [ REQUIRED ]-->
    <link href="/thirdparty/nifty/css/nifty.min.css" rel="stylesheet">


    <!--Nifty Premium Icon [ DEMONSTRATION ]-->
    <link href="/thirdparty/nifty/css/demo/nifty-demo-icons.min.css" rel="stylesheet">


    <!--Demo [ DEMONSTRATION ]-->
    <link href="/thirdparty/nifty/css/demo/nifty-demo.min.css" rel="stylesheet">


        
    <!--FooTable [ OPTIONAL ]-->
    <link href="/thirdparty/nifty/plugins/fooTable/css/footable.core.css" rel="stylesheet">





    
    <!--JAVASCRIPT-->
    <!--=================================================-->

    <!--Pace - Page Load Progress Par [OPTIONAL]-->
    <link href="/thirdparty/nifty/plugins/pace/pace.min.css" rel="stylesheet">
    <script src="/thirdparty/nifty/plugins/pace/pace.min.js"></script>


    <!--jQuery [ REQUIRED ]-->
    <script src="/thirdparty/nifty/js/jquery-2.2.4.min.js"></script>


    <!--BootstrapJS [ RECOMMENDED ]-->
    <script src="/thirdparty/nifty/js/bootstrap.min.js"></script>


    <!--NiftyJS [ RECOMMENDED ]-->
    <script src="/thirdparty/nifty/js/nifty.min.js"></script>






    <!--=================================================-->
    
    <!--Demo script [ DEMONSTRATION ]-->
    <script src="/thirdparty/nifty/js/demo/nifty-demo.min.js"></script>

    
    <!--FooTable [ OPTIONAL ]-->
    <script src="/thirdparty/nifty/plugins/fooTable/dist/footable.all.min.js"></script>


    <!--FooTable Example [ SAMPLE ]-->
    <script src="/thirdparty/nifty/js/demo/tables-footable.js"></script>



    

        

</head>

<div class="row">
    <div class="col-lg-11" style="margin-left:60px;">
        <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">
					<span style="float:right;">
                        <a href= <?= url ::to(['daily']) ?> style = 'color:#2B425B;' >我的日报</a>&nbsp;&nbsp;
                        你好 <?= $session['realname'] ?> &nbsp;&nbsp;&nbsp;&nbsp;
                        <a href= <?= url ::to(['pass']) ?> >修改密码</a> | 
                        <a href= <?= url ::to(['quit']) ?> >注销</a>
                    </span>  
                	修改密码
                </h3>
            </div>


            <!--Input Size-->
            <!--===================================================-->
            <form class="form-horizontal" action="<?= url::to('update'); ?>" method="post">
            	<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                <div class="panel-body">
	                <p class="text-muted" style="color:red; text-align:center;">
								<?= $session->hasFlash('demo') ? $session->getFlash('demo') : '请您谨慎操作' ?>	
			        </p>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="demo-is-inputsmall">原密码</label>
                        <div class="col-sm-6">
                            <input type="password" name="ypassword" placeholder="请输入原先密码"  class="form-control " id="demo-is-inputsmall">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="demo-is-inputnormal" class="col-sm-3 control-label">新密码</label>
                        <div class="col-sm-6">
                            <input type="password" name="xpassword" placeholder="请输入新密码" class="form-control" id="demo-is-inputnormal">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="demo-is-inputlarge" class="col-sm-3 control-label">确认新密码</label>
                        <div class="col-sm-6">
                            <input type="password" name="qpassword" placeholder="确认新密码" class="form-control " id="demo-is-inputlarge">
                        </div>
                    </div>
                </div>
                <div class="panel-footer">
                    <div class="row">
                        <div class="col-sm-9 col-sm-offset-3">
                            <button class="btn btn-mint" type="submit">修改</button>
                            <button class="btn btn-warning" type="reset">重置</button>
                        </div>
                    </div>
                </div>
            </form>
            <!--===================================================-->
            <!--End Input Size-->


        </div>
    </div>
</div>

